package com.itheima.mongoservice;

import com.itheima.pojo.mongo.Friend;

import java.util.List;

public interface FriendServiceApi {
    void addFriends(Friend friend);

    boolean isFriendExist(Long id, Long userId);

    List<Friend> getFriends(Integer page, Integer pagesize, Long id);

    List<Friend> findFriends(Long uid);
    //查询相互喜欢数目
    Integer getEachCount(Long uid);

    //取消喜欢-
    void deleteFriend(Long uid, Long id);

}
